import request from '@/utils/request'

export function getKnowledgeList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/knowledge/getList',
    method: 'post',
    data: query
  })
}    

export function saveKnowledge(query) {
  return request({
    url: '/examine/admin/knowledge/save',
    method: 'post',
    data: query
  })
}

export function removeKnowledge(query) {
  return request({
    url: '/examine/admin/knowledge/remove',
    method: 'post',
    data: query
  })
}
export function getKnowledgeDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/examine/admin/knowledge/getDetail',
    method: 'post',
    data: query
  })
}